-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UpdatePartitionState to avoid restarting Producer #375
base: master
Are you sure you want to change the base?
Conversation
UpdatePartitionState and call it from NewPartitionHandler to avoid restarting Producer service again in case of a new partition
@linkedin, @mhratson, = @andrewchoi5 @Lincong for review |
@efeg for review pls. |
@CCisGG Any one whom you can add for review please. |
I don't have much context on this repo. @mitchhh22 could you or your team help to review this? |
I can take a look next week. /Maryan
|
@suyashtava thanks for the contribution! Could you please describe why restarting is an issue? While I can assume that restarting may be slow i'd like to know other arguments as well if available. Thanks |
Background: For this, we introduced 1:1 mapping of Partition and Producer so other partitions can still be produced by a producer and not blocked by other Producer feeling slow. Challenge: Proposal: |
If the 1:1 mapping of Producer and Partition sounds good I can raise another PR for the same, after this one. |
@mhratson by any chance u get a moment to check this? |
That's not the case for this |
@mhratson Apolgies, for some personal reason I had to drop system. This opens 2 things: IMHO We should Decouple Producer for each partition here aswell, so that it would be easy to detect which broker is slow. Even if we decide against above, atleast we should not be restarting whole Producer in case of new Partition, and it should be attached to same Producer, that way we will increase KMF Availability. |
On Every new Partition, We are killing the whole Producer Service, and restarting it, instead we can update the state of Partition to include new partitions. This will stop unnecessary restart.
Issue: #376